package com.liutaw.nanjingair.views.activities;

import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.liutaw.nanjingair.R;
import com.liutaw.nanjingair.views.activities.base.BaseActivity;
import com.liutaw.navigationbarlib.NaviBarBuilder;

import butterknife.Bind;
import butterknife.ButterKnife;

public class WindActivity extends BaseActivity {

//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.layout_wind);
//    }
    @Bind(R.id.webview)
    WebView webview;

    @Override
    protected int getLayoutResId() {
        return R.layout.layout_wind;
    }

    @Override
    protected void initNaviBar(NaviBarBuilder naviBarBuilder) {

    }

    @Override
    protected String getCusTitle() {
        return "台风路径";
    }

    @Override
    protected void initOnCreate() {
        WebSettings settings = webview.getSettings();
        settings.setJavaScriptEnabled(true);
        webview.loadUrl("http://www.wztf121.com/wap/release/index.html#route");
    }

    @Override
    protected void initCusView(View view) {
        ButterKnife.bind(this,view);
    }
}
